﻿using NHibernate;
using MiserDB.MySql;
using NHibernate.Criterion;
using System.Collections.Generic;
using System.IO;
using System;

namespace MiserDB.DataHelp
{
    public class A_DataHelper : IDisposable
    {
        public ISession Session { get; set; }

        public A_DataHelper()
        {
            
            Session = NHibernateHelper.GetCurrentSession();
            
        }

        #region IDisposable 成员

        public virtual void Dispose()
        {
            NHibernateHelper.CloseSession();
            NHibernateHelper.CloseSessionFactory();
        }

        #endregion
    }
}
